package sidebar;

import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JPanel;

import skin.Skin;

@SuppressWarnings("serial")
public class Assistant extends JPanel implements MouseListener{
	Sidebar sidebar;
	public Assistant(Skin skin, Sidebar sidebar)
	{
		addMouseListener(this);
		setBackground(Color.BLUE);
		this.sidebar = sidebar;
		//TODO: fetch the border from the config files
	}
	
	
	
	//Methods for mouseListener, so as to capture mouse events on the assistant.
		@Override
		public void mouseClicked(MouseEvent e)
		{
			ActionEvent evt = new ActionEvent(this, 0, "Assistant");
			sidebar.actionPerformed(evt);
			//TODO: this about this, this is dangerous.
		}

	//================================STORING THIS FOR LATER / NEEDED EVENTS. 
		@Override
		public void mouseEntered(MouseEvent e){}

		@Override
		public void mouseExited(MouseEvent e){}

		@Override
		public void mousePressed(MouseEvent e){}

		@Override
		public void mouseReleased(MouseEvent e){}
}
